import Vue from 'vue'
import Vuex from 'vuex'

import state from './state'
import actions from './actions'
import mutations from './mutations'
import user from './modules/user'
import getters from './getters'

import shoplist from './modules/shoplist'
import shoptions from './modules/shoptions'
import huiyuan from './modules/huiyuan'
import miaosha from './modules/miaosha'


Vue.use(Vuex)

export default new Vuex.Store({
  state,
  mutations,
  getters,
  actions,
  modules: {
    user,
    shoplist,
    shoptions,
    huiyuan,
    miaosha
  }
})
